package org.homly.tool;

import java.util.Date;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.apache.commons.beanutils.ConvertUtils;

@SuppressWarnings("serial")
/**
 * 注册Date类型转换器
 */
public class ConvertRegisterServlet extends HttpServlet {

	@Override
	public void init() throws ServletException {

		ConvertUtils.register(new DateConverter(), Date.class);
	}
}
